const express = require('express')
const cookieParter = require('cookie-parser');
const conkieSession = require('cookie-session')
var server = express()
server.use(cookieParter())
server.use(conkieSession({
	keys: ['aaaa','bbb','ccc']
}))
server.use('/',function(req,res){
	// res.cookie('name','blue')
	if(req.session['num'] == null){
		req.session['num'] = 1
	}else{
		req.session['num'] ++ 
	}
	console.log(req.session['num'])
	res.send('ok')

})
server.listen(8080)
